package com.simplenix.rush.db.filters;

import com.simplenix.rush.db.Note;
import net.sourceforge.floggy.persistence.Filter;
import net.sourceforge.floggy.persistence.Persistable;

/**
 *
 * @author fronald
 */
public class NoteNameFilter implements Filter {

	private String name;

	public NoteNameFilter(String name) {
		this.name = name;
	}

	public boolean matches(Persistable note) {
		Note n = (Note) note;
		return n.getName().equals(this.name);
	}

}
